package cn.itsource.basic.base.mapper;

import cn.itsource.basic.page.Pageable;
import cn.itsource.org.domain.Department;

import java.util.List;

public interface BaseMapper<T> {

    List<T> loadAll();

    T loadOne(Long id);

    void insert(T t);

    void delete(Long id);

    void update(T t);

    Long count(Pageable pageable);

    List<T> queryPage(Pageable pageable);

    void batchDelete(List<Long> ids);
}
